﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.master" Inherits="System.Web.Mvc.ViewPage<pcceftaw.Models.pri_tb_passo>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Novo Passo
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<h2>Novo Passo</h2>

<script src="<%: Url.Content("~/Scripts/jquery.validate.min.js") %>" type="text/javascript"></script>
<script src="<%: Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js") %>" type="text/javascript"></script>

<% using (Html.BeginForm()) { %>
    <%: Html.ValidationSummary(true) %>
    <fieldset>
        <legend>Dados do Passo</legend>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.id_processo, "Processo") %>
        </div>
        <div class="editor-field">
            <%: Html.DropDownList("id_processo", String.Empty) %>
            <%: Html.ValidationMessageFor(model => model.id_processo) %>
            <%: Html.ActionLink("Novo Processo", "Create", "Processo")%>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.tx_tipo, "Tipo") %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.tx_tipo) %>
            <%: Html.ValidationMessageFor(model => model.tx_tipo) %>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.tx_descricao, "Descrição") %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.tx_descricao) %>
            <%: Html.ValidationMessageFor(model => model.tx_descricao) %>
        </div>

        <p>
            <input type="submit" value="Criar" />
        </p>
    </fieldset>
<% } %>

<div>
    <%: Html.ActionLink("Voltar para Listagem", "Index")%>
</div>

</asp:Content>
